import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    songUrl: '',
    songId: '',
    artist: '',
    songPic: '',
    songTitle: '',
    myId:'',
    mvurl:"",
    vurl:"",
    vurl:"",

    myId:'',

    mvurl:"",
    vurl:"",
    accleft:"-95%"
    

  },
  mutations: {
    play (state, payload) {
      state.songId = payload.id
      state.artist = payload.artist
    },
    getInfo (state, payload) {
      state.artist = payload.artist
      state.songPic = payload.picUrl
      state.songTitle = payload.songTitle
      state.songUrl = payload.songUrl
    },
    getMyId(state, getMy){
    	state.myId = getMy
    },
    getMyName(state, getMy){
    	state.myName = getMy
    },
    getmvUrl(state,murl) {
    	state.mvurl = murl;
    },
    getMyId(state, getMy){
      state.myId = getMy
    },
    getmvUrl(state,murl) {
    	state.mvurl = murl;
    },
    getmvUrl(state,murl) {
    	state.mvurl = murl;
    },
    setAccleft(state,leftd){
    	state.accleft=leftd;
    }
  },
  actions: {

  }
})
